﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace NCS.DeviceManager.Models.Entities
{
    [Table("tbl_role")]
    public class RoleEntity:BaseEntity
    {
        /// <summary>
        /// 权限名称中文名字
        /// </summary>
        [MaxLength(512), Required]
        public string RoleNameZh { get; set; }
        /// <summary>
        /// 权限名称英文名字
        /// </summary>
        [MaxLength(512), Required]
        public string RoleNameEn { get; set; }
        /// <summary>
        /// 权限编码
        /// </summary>
        [MaxLength(64), Required]
        public string RoleCode { get; set; }
    }
}
